
<template>
    <Button type="text" v-permission="'modifyBtn'"  size="small" icon="edit" @click="clickHandler" :disabled="status === '已复核' || creator !== userName"></Button>
</template>

<script>
  export default {
    accessLabel: '修改',
    accessKey: 'modifyBtn',
    props:{
      status:String,
      creator:String,
      require:true
    },
    data() {
      return {
        userName:''
      }
    },
    methods: {
      clickHandler () {
        this.$emit('modifyClick');
      }
    },
    mounted () {
      this.userName = this.$auth.user().name
    }
  };
</script>
